"""water URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path

# urlpatterns = [
#     path('admin/', admin.site.urls),
# ]
from django.urls import path,include  
from app01 import views
from app01.view import client,admin,worker
import app01

app_name='app01'
urlpatterns=[
    path('',views.index,name='index'),
    path('dingdan/',views.dingdan,name='dingdan'),
    path('client_order/',client.client_order),
    path('show/',views.show,name='show'),
    path('check/',views.check,name='check'),
    path('index1/',views.index1),
    path('admin/',views.admin),
    path('client/',client.client),
    path('reserve_water/',client.reserve_water),
    path('order_detail/',client.order_detail),
    path('login/',views.login), 
    path('image/code/', views.image_code),
    path('client_add/',client.client_add),
    path('reserve_result/',client.reserve_result),
    path('client_info/',admin.client_info,name='client_info'),
    path('worker_info/',admin.worker_info,name='worker_info'),
    path('worker_reset/<int:nid>/',admin.worker_reset),
    path('worker_delete/<int:nid>/',admin.worker_delete),
    path('worker_add/',admin.worker_add),
    path('worker_edit/<int:nid>/',admin.worker_edit),
    path('worker_examine/<int:nid>/',worker.worker_examine),
    path('client_edit/<int:nid>/',admin.client_edit),
    path('client_delete/<int:nid>/',admin.client_delete),
    path('logout/',views.logout),
    path('worker/',worker.order_info),
    path('order_info/',worker.order_info),
    path('worker_reserve/',admin.worker_reserve),
    path('admin_examine/',admin.admin_examine,name="admin_examine"),
    path('admin_pass/',admin.admin_pass),
    path('admin_no/',admin.admin_no),
    path('arrive/',worker.arrive),
    path('history/',admin.history,name="history"),
    path('finish_order/<int:wid>/',worker.finish_order),
    path('fare/',admin.fare,name="fare"),
    path('purify_water/',admin.purify_water,name="purify_water"),
    path('supplier/',admin.supplier,name="supplier"),
    path('water_edit/<int:nid>/',admin.water_edit),
    path('worker_salary/',worker.worker_salary),
    path('chart_bar/',admin.chart_bar),
    path('admin_order/',admin.admin_order,name="admin_order"),
    path('supplier_edit/<int:nid>/',admin.supplier_edit),
    path('supplier_delete/<int:nid>/',admin.supplier_delete),
    path('supplier_add/',admin.supplier_add),
    path('purify_edit/<int:nid>/',admin.purify_edit),
    path('purify_add/',admin.purify_add),
    path('purify_delete/<int:nid>/',admin.purify_delete),
    
]
